package com.zhb.designmode.creationmode.prototype.shallow;

public class Test {

    public static void main(String[] args) {
        Person person = new Person("朱海斌",18);
        try {
            Person clone = (Person) person.clone();
            System.out.println(person);
            System.out.println(clone);
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
